package com.example.aitoedu.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@Schema(description = "查询课程时传递的数据模型")
public class MyCourseDTO {
    @Schema(description = "课程名")
    private String courseName;

    @Schema(description = "教师名")
    private String teaName;

    @Schema(description = "加入时间开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime begin;

    @Schema(description = "加入时间结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime end;
}
